import request from '@/utils/request'

// 查询企业证照列表
export function listEnterprise_certificate(query) {
  return request({
    url: '/business/enterprise_certificate/list',
    method: 'get',
    params: query
  })
}

// 查询企业证照详细
export function getEnterprise_certificate(certificateId) {
  return request({
    url: '/business/enterprise_certificate/' + certificateId,
    method: 'get'
  })
}

// 新增企业证照
export function addEnterprise_certificate(data) {
  return request({
    url: '/business/enterprise_certificate',
    method: 'post',
    data: data
  })
}

// 修改企业证照
export function updateEnterprise_certificate(data) {
  return request({
    url: '/business/enterprise_certificate',
    method: 'put',
    data: data
  })
}

// 删除企业证照
export function delEnterprise_certificate(certificateId) {
  return request({
    url: '/business/enterprise_certificate/' + certificateId,
    method: 'delete'
  })
}
